#!/usr/bin/env python
# -*- coding: utf-8 -*-
import requests
 
url='https://www.baidu.com/'
respose=requests.get('http://dig.chouti.com/')
 
print(request.status_code)

 
print(respose.encoding)#查看网页编码
respose.encoding='utf-8' #设置网页编码
print(respose.status_code)
# with open('a.html','w',encoding='utf-8') as f:
#     f.write(respose.text)
